<?php

namespace app\http\middleware;

class adminauth
{
    public function handle($request, \Closure $next)
    {
    	if(!session('admin_id', '', 'admin'))
    	{
    		return redirect('admin/login/login');
    	}
    	return $next($request);
    }
}
